<%@ taglib prefix="cw" uri="/widget-tags"%>
<%@page contentType="text/html;charset=utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<cw:base />
		<title>待遇享受人员录入</title>
	</head>
	<body>
		<ul>
			<li>
				<b>表单按钮为表单提供基本的提交和重置按钮</b>
			</li>
			<li>
				<b>表单按钮控件的actionType属性为操作类型(可选值[submit,reset])，formId属性为绑定表单ID，onSuccess属性为提交后返回的处理方法</b>
			</li>
		</ul>
		<br />
		<br />
		<cw:form ajax="true" id="form" method="post" url="../../../sample/form/ajaxSubmit.action">
			<cw:fieldSet content="fields" title="人员基础信息" />
			<div id="fields">
				<table width="800">
					<colgroup>
						<col width='15%'>
						<col width='15%'>
						<col width='15%'>
						<col width='15%'>
						<col width='15%'>
						<col width='15%'>
					</colgroup>
					<tr>
						<td align="right">
							<font color="red">*</font>身份证号码
						</td>
						<td>
							<cw:text required="true" property="id" validateType="idcard" />
						</td>
						<td align="right">
							<font color="red">*</font>姓名
						</td>
						<td>
							<cw:text property="name" required="true" />
						</td>
						<td align="right">
							性别
						</td>
						<td>
							<cw:combobox property="sex" data="[[1,'男'],[2,'女']]" editable="true" emptyText="请选择..." />
						</td>
					</tr>
				</TABLE>
			</div>
			
		</cw:form>
		<table align="center">
			<tr>
				<td>
					<cw:formButton actionType="submit" formId="form" />
				</td>
				<td>
					<cw:formButton actionType="reset" formId="form" />
				</td>
			</tr>
		</table>
	</body>
	<cw:theme></cw:theme>
</html>
